package com.struct;

/**
 * Created by Administrator on 2016/1/7.
 */
public final class ResponseHeader {

    private int crcCode = 0xabef0101;
    private int length; // 消息长度
    private int stateCode;
    private String uri;
    //private Map<String, Object> attachment = new HashMap<String, Object>(); // 附件

    public int getCrcCode() {
        return crcCode;
    }

    public void setCrcCode(int crcCode) {
        this.crcCode = crcCode;
    }

    public int getLength() {
        return length;
    }

    public void setLength(int length) {
        this.length = length;
    }

    public String getUri() {
        return uri;
    }

    public void setUri(String uri) {
        this.uri = uri;
    }

    /*    public Map<String, Object> getAttachment() {
        return attachment;
    }

    public void setAttachment(Map<String, Object> attachment) {
        this.attachment = attachment;
    }*/

    public int getStateCode() {
        return stateCode;
    }

    public void setStateCode(int stateCode) {
        this.stateCode = stateCode;
    }

    @Override
    public String toString() {
        return "ResponseHeader{" +
                "crcCode=" + crcCode +
                ", length=" + length +
                ", stateCode=" + stateCode +
                ", uri='" + uri + '\'' +
                '}';
    }
}
